﻿using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace WCF.Common.GisService
{
    /// <summary>表示一个数据服务图层目录对象。</summary>
    /// <remarks></remarks>
    [DataContract(Namespace = Constrons.NameSpace)]
    public class ServiceDirectory : ServiceBase
    {
        /// <summary>构造一个数据服务目录对象</summary>
        public ServiceDirectory()
        {
            SubNotes = new List<ServiceBase>();
        }
        /// <summary>获取或设置数据服务目录的子节点集合。</summary>
        [DataMember]
        [XmlArrayItem("Directory", typeof(ServiceDirectory)), XmlArrayItem("Layer", typeof(ServiceLayer))]
        public List<ServiceBase> SubNotes { get; set; }
    }
}